import { baseRequestClient, requestClient } from '#/api/request';

//  收费日报表查询
export async function getChargeDailyApi(data: any) {
  return requestClient.post(`/ChargeSystem/fee/findDailyReport`, data);
}
// 用户收费明细表
export async function getUserChargeDetailApi(data: any) {
  return requestClient.post(`/ChargeSystem/fee/findUserFee`, data);
}
// 应收生成明细表
export async function getReceivableDetailApi(data: any) {
  return requestClient.post(`/ChargeSystem/fee/findReceivableList`, data);
}
// 历年缴费明细表
export async function getChargeHistoryApi(data: any) {
  return requestClient.post(`/ChargeSystem/fee/findPayFees`, data);
}
// 用户收费日报表导出
export async function getChargeUserExportApi(data: any) {
  return baseRequestClient.post(`/ChargeSystem/fee/exportUserData`, data);
}
// 收费日报表导出
export async function getChargeDailyExportApi(data: any) {
  return baseRequestClient.post(`/ChargeSystem/fee/exportData`, data);
}
// 应收明细表导出
export async function getReceivableExportApi(data: any) {
  return baseRequestClient.post(`/ChargeSystem/fee/exportReceivable`, data);
}
// 历年缴费明细表导出
export async function getChargeHistoryExportApi(data: any) {
  return baseRequestClient.post(`/ChargeSystem/fee/exportPayFees`, data);
}
// 报表导出历史
export async function getReportExportHistoryApi(data: any) {
  return requestClient.get(`/ChargeSystem/fee/findExportHistory`, {
    params: {
      ...data,
    },
  });
}
// 操作人获取
export async function getOperatorApi(id?: any) {
  return requestClient.get(`/ChargeSystem/selectCommon?id=${id}`);
}
// 查询面积报表
export async function getAreaReportApi(data: any) {
  return requestClient.post(`/ChargeSystem/summary/findAreaReport`, data);
}
// 导出面积报表
export async function getAreaReportExportApi(data: any) {
  return baseRequestClient.post(`/ChargeSystem/summary/exportAreaReport`, data);
}
// 查询年度报表
export async function getYearReportApi(data: any) {
  return requestClient.post(`/ChargeSystem/summary/findAnnualReport`, data);
}
// 导出年度报表
export async function getYearReportExportApi(data: any) {
  return baseRequestClient.post(
    `/ChargeSystem/summary/exportAnnualReport`,
    data,
  );
}
// 查询暖费大表
export async function getHeatFeeApi(data: any) {
  return requestClient.post(`/ChargeSystem/summary/findHeatingCostMeter`, data);
}
// 导出暖费大表
export async function getHeatFeeExportApi(data: any) {
  return baseRequestClient.post(`/ChargeSystem/summary/exportHeatingCo`, data);
}
// 查询缴费方式汇总表
export async function getPayWayApi(data: any) {
  return requestClient.post(`/ChargeSystem/summary/findFeeSummary`, data);
}
// 导出缴费方式汇总表
export async function getPayWayExportApi(data: any) {
  return baseRequestClient.post(`/ChargeSystem/summary/exportFeeSummary`, data);
}
// 查询应收变动汇总表
export async function getReceivableChangeApi(data: any) {
  return requestClient.post(`/ChargeSystem/summary/findChangeSummary`, data);
}
// 导出应收变动汇总表
export async function getReceivableChangeExportApi(data: any) {
  return baseRequestClient.post(
    `/ChargeSystem/summary/exportChangeSummary`,
    data,
  );
}
// 查询供热报停明细表
export async function getHeatingSupplyApi(data: any) {
  return baseRequestClient.get(`/ChargeSystem/file/getHeatShutdownList`, {
    params: {
      ...data,
    },
  });
}
// 导出供热报停明细表
export async function getHeatingSupplyExportApi(data: any) {
  return baseRequestClient.get(`/ChargeSystem/file/exportHeatShutdownFile`, {
    params: {
      ...data,
    },
  });
}
// 查询开关栓明细表
export async function getSwitchApi(data: any) {
  return baseRequestClient.get(`/ChargeSystem/file/getSwitchPlugList`, {
    params: {
      ...data,
    },
  });
}
// 导出开关栓明细表
export async function getSwitchExportApi(data: any) {
  return baseRequestClient.get(`/ChargeSystem/file/exportSwitchPlugFile`, {
    params: {
      ...data,
    },
  });
}
// 查询区域汇总表
export async function getAreaSummaryApi(data: any) {
  return baseRequestClient.get(`/ChargeSystem/file/getAnnualRegionList`, {
    params: {
      ...data,
    },
  });
}
// 导出区域汇总表
export async function getAreaSummaryExportApi(data: any) {
  return baseRequestClient.get(`/ChargeSystem/file/exportAnnualRegion`, {
    params: {
      ...data,
    },
  });
}
// 查询供热稽查明细表
export async function getHeatInspectionApi(data: any) {
  return baseRequestClient.get(`/ChargeSystem/file/getHeatingInspectionList`, {
    params: {
      ...data,
    },
  });
}
// 导出供热稽查明细表
export async function getHeatInspectionExportApi(data: any) {
  return baseRequestClient.get(`/ChargeSystem/file/exportHeatingInspection`, {
    params: {
      ...data,
    },
  });
}
// 导出稽查报表历史
export async function getHeatInspectionExportHistoryApi(data: any) {
  return baseRequestClient.get(`/ChargeSystem/file/getExportFileHistory`, {
    params: {
      ...data,
    },
  });
}
// // 导出供热稽查明细表
// export async function getHeatInspectionExportApi(data: any) {
//   return baseRequestClient.post(
//     `/ChargeSystem/file/exportHeatingInspection`,
//     data,
//   );
// }
